@import "./variable.scss";
@import "./iconfont.scss";
@import "./flex.scss";
@import "./font.scss";
@import "./colors.scss";


page,
view,
icon,
text,
image,
label,
input,
button,
cover-view {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

:after,
:before {
  box-sizing: border-box;
}

image {
  display: block;
}

.left {
  text-align: left;
}

.center {
  text-align: center;
}

.right {
  text-align: right;
}

.pull-left {
  float: left;
}

.pull-right {
  float: right;
}

.input-placeholder {
  font-size: rpx(28);
}

page {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  background-color: $uni-bg-color-white;
  font-size: $uni-font-size-base;
  color: $uni-font-color-base;
}

button {
  padding: 0;
  border: none;
  border-radius: 0;
  padding-right: 0;
  background-color: transparent;
  &:focus {
    outline: none;
  }
  &:after {
    display: none;
  }
}

.module {
  position: relative;
  margin-bottom: rpx(20);
  background-color: $uni-bg-color-white;
  &:last-child {
    margin: 0;
  }
}

.disable {
  opacity: 0.5;
}

.require {
  color: $uni-font-color-red;
}

.btn {
  overflow: hidden;
  position: relative;
  &:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    visibility: hidden;
    transition: all 150ms ease;
  }
  &:active {
    &:before {
      visibility: visible;
      background-color: rgba(0, 0, 0, 0.3);
    }
  }
}

.ellipsis {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

radio {
  transform: scale(0.8);
}

.fade-in {
  animation: fade-in 300ms ease-out forwards;
}

.fade-out {
  animation: fade-out 300ms ease-out forwards;
}

@keyframes fade-in {
  0% {
    opacity: 0;
    visibility: hidden;
  }
  100% {
    opacity: 1;
    visibility: visible;
  }
}

@keyframes fade-out {
  0% {
    opacity: 1;
    visibility: visible;
  }
  100% {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(180deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
